﻿
<%@ Page Language="C#" Theme="PAT_Theme" MasterPageFile="~/master/PAT.master" AutoEventWireup="true"  CodeFile="PatItemInventario.aspx.cs" Inherits="PatItemInventario" Title="PatItemInventario List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="subHeaderContent" Runat="Server">Pat Item Inventario List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="PatItemInventarioDataSource"
				DataKeyNames="IdItemInventario"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_PatItemInventario.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<asp:BoundField DataField="CodigoInternoItem" HeaderText="Codigo Interno Item" SortExpression="[CODIGO_INTERNO_ITEM]"  />
				<asp:BoundField DataField="DescripcionItem" HeaderText="Descripcion Item" SortExpression="[DESCRIPCION_ITEM]"  />
				<asp:BoundField DataField="LineaBodega" HeaderText="Linea Bodega" SortExpression="[LINEA_BODEGA]"  />
				<asp:BoundField DataField="Arancel" HeaderText="Arancel" SortExpression="[ARANCEL]"  />
				<asp:BoundField DataField="Marca" HeaderText="Marca" SortExpression="[MARCA]"  />
				<asp:BoundField DataField="Familia" HeaderText="Familia" SortExpression="[FAMILIA]"  />
				<asp:BoundField DataField="SubFamilia" HeaderText="Sub Familia" SortExpression="[SUB_FAMILIA]"  />
				<asp:BoundField DataField="Categoria" HeaderText="Categoria" SortExpression="[CATEGORIA]"  />
				<asp:BoundField DataField="UnidadPor" HeaderText="Unidad Por" SortExpression="[UNIDAD_POR]"  />
				<asp:BoundField DataField="LoteEmpaque" HeaderText="Lote Empaque" SortExpression="[LOTE_EMPAQUE]"  />
				<asp:BoundField DataField="Volumen" HeaderText="Volumen" SortExpression="[VOLUMEN]"  />
				<asp:BoundField DataField="Peso" HeaderText="Peso" SortExpression="[PESO]"  />
				<asp:BoundField DataField="PorcentajeDescuento" HeaderText="Porcentaje Descuento" SortExpression="[PORCENTAJE_DESCUENTO]"  />
				<asp:BoundField DataField="PorcentajeIva" HeaderText="Porcentaje Iva" SortExpression="[PORCENTAJE_IVA]"  />
				<asp:BoundField DataField="CodigoAnteriorItem" HeaderText="Codigo Anterior Item" SortExpression="[CODIGO_ANTERIOR_ITEM]"  />
				<asp:BoundField DataField="CodigoEquivalenteItem" HeaderText="Codigo Equivalente Item" SortExpression="[CODIGO_EQUIVALENTE_ITEM]"  />
				<asp:BoundField DataField="Origen" HeaderText="Origen" SortExpression="[ORIGEN]"  />
				<asp:BoundField DataField="UsoXVehiculo" HeaderText="Uso X Vehiculo" SortExpression="[USO_X_VEHICULO]"  />
				<asp:BoundField DataField="StockMinimo" HeaderText="Stock Minimo" SortExpression="[STOCK_MINIMO]"  />
				<asp:BoundField DataField="FechaCreacion" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Fecha Creacion" SortExpression="[FECHA_CREACION]"  />
				<asp:BoundField DataField="CostoReposicion" HeaderText="Costo Reposicion" SortExpression="[COSTO_REPOSICION]"  />
				<data:BoundRadioButtonField DataField="ItemGenerico" HeaderText="Item Generico" SortExpression="[ITEM_GENERICO]"  />
				<asp:BoundField DataField="ClasificacionABc" HeaderText="Clasificacion A Bc" SortExpression="[CLASIFICACION_aBC]"  />
				<data:BoundRadioButtonField DataField="Activo" HeaderText="Activo" SortExpression="[ACTIVO]"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No PatItemInventario Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnPatItemInventario" OnClientClick="javascript:location.href='PatItemInventarioEdit.aspx'; return false;" Text="Agregar Nuevo "></asp:Button>
		<data:PatItemInventarioDataSource ID="PatItemInventarioDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
		>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:PatItemInventarioDataSource>
	    		
</asp:Content>



